package cn.net.xinyi.xs.model.vo;

import java.io.Serializable;

public class PageVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2196095527802129606L;

	private int pageNumber;

	private int pageSize;

	private int resultSize;

	private int totalPage;

	private String sort;

	private String dir;

	public PageVO() {
	}

	public PageVO(int pageNumber, int pageSize, int resultSize, String sort,
			String dir) {
		this.pageNumber = pageNumber;
		this.pageSize = pageSize;
		this.resultSize = resultSize;
		this.sort = sort;
		this.dir = dir;
	}

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getResultSize() {
		return resultSize;
	}

	public void setResultSize(int resultSize) {
		this.resultSize = resultSize;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}

	public int getStartIndex() {
		return (pageNumber - 1) * pageSize;
	}
}
